/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.cellstore.entidad;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Embeddable;

/**
 *
 * @author paescobar
 */
@Embeddable
public class TbParametroPK implements Serializable {
    @Basic(optional = false)
    @Column(name = "id_parametro")
    private int idParametro;
    @Basic(optional = false)
    @Column(name = "id_dominio")
    private int idDominio;

    public TbParametroPK() {
    }

    public TbParametroPK(int idParametro, int idDominio) {
        this.idParametro = idParametro;
        this.idDominio = idDominio;
    }

    public int getIdParametro() {
        return idParametro;
    }

    public void setIdParametro(int idParametro) {
        this.idParametro = idParametro;
    }

    public int getIdDominio() {
        return idDominio;
    }

    public void setIdDominio(int idDominio) {
        this.idDominio = idDominio;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (int) idParametro;
        hash += (int) idDominio;
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TbParametroPK)) {
            return false;
        }
        TbParametroPK other = (TbParametroPK) object;
        if (this.idParametro != other.idParametro) {
            return false;
        }
        if (this.idDominio != other.idDominio) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.mycompany.mavenproject2.TbParametroPK[ idParametro=" + idParametro + ", idDominio=" + idDominio + " ]";
    }
    
}
